from PyQt5.QtCore import QStringListModel
from PyQt5.Qt import QCompleter
from PyQt5.Qt import Qt
from PyQt5.QtWidgets import QWidget
from PyQt5.QtWidgets import QAbstractItemView
import json
from view.TrackerView import Ui_FunctionTracker


class FunctionTracker(QWidget, Ui_FunctionTracker):
    def __init__(self, frida_manager=None, log_out=None):
        super(FunctionTracker, self).__init__()
        self.setupUi(self)
        self.setLayout(self.verticalLayout)
        self.frida_manager = frida_manager
        self.log_out = log_out
        self.lineEdit.returnPressed.connect(self.line_edit_click)

    def unpack_click(self):
        pass

    def update_text_edit(self):
        pass

    def line_edit_click(self):
        text = self.lineEdit.text()
        self.textEdit.append(text)



